<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="js/knockout-3.4.0.js" ></script>
	</head>
	<body>
		<div id="_bindDemo">
			点击修改按钮修改姓名<input id="_value"　type="text"/>
			<input type="button" value="修改" onclick="refreshData()"/><br />
			姓名<span data-bind="text: name"></span>
		</div>
	</body>
	<script type="text/javascript">
		var data = {
			name: ko.observable('lee')
		};
		ko.applyBindings(data, document.getElementById('_bindDemo'));
		
		function refreshData(){
			data.name(document.getElementById('_value').value);
		}
	</script>
</html>
